Account is Setup
Check to see if an account looks like it has been set up to hold UFC Strike NFTs.
Returns: bool
- A bool indicating if the account has been setup.
import NonFungibleToken from 0xNONFUNGIBLETOKENADDRESS
import UFC_NFT from 0xUFCNFTADDRESS
pub fun main(address: Address): Bool {
let account = getAccount(address)
return account.getCapability<&{
NonFungibleToken.CollectionPublic,
UFC_NFT.UFC_NFTCollectionPublic
}>(UFC_NFT.CollectionPublicPath)
!= nil
}